package org.example.app.controller;

import org.example.app.feign.OrderServiceFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("app")
public class AppController {
    @Autowired
    OrderServiceFeign orderServiceFeign;

    @RequestMapping("addOrder")
    public String addOrder() {
        orderServiceFeign.add();
        return "success";
    }
}
